pkgname=plasma-mobile
pkgver=5845.8005327e
pkgrel=2
pkgdesc="Plasma Mobile"
arch="all"
url="https://community.kde.org/Plasma/Mobile"
license="GPL3"
depends="plasma-workspace kio"
makedepends="extra-cmake-modules kdoctools-dev plasma-workspace-dev qt5-qtdeclarative-dev
			 kio-dev kdelibs4support-dev kwindowsystem-dev kwayland-dev karchive-dev sonnet-dev
			 knotifications-dev kiconthemes-dev plasma-framework-dev kpackage-dev kdeclarative-dev
			 kactivities-dev kcodecs-dev kcoreaddons-dev solid-dev kconfig-dev kauth-dev
			 kdbusaddons-dev ki18n-dev kservice-dev kcompletion-dev kbookmarks-dev kwidgetsaddons-dev
			 kitemviews-dev kjobwidgets-dev kxmlgui-dev kconfigwidgets-dev"
install="$pkgname.post-install
		 $pkgname.post-upgrade
		 $pkgname.post-deinstall"
source="$pkgname-$pkgver.tar.gz::https://github.com/KDE/$pkgname/archive/master.tar.gz
		$install"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake $srcdir/$pkgname-master \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_TESTING=OFF \
		-DLIB_INSTALL_DIR=lib \
		-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
		-DCMAKE_BUILD_TYPE=Release
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="$pkgdir/" install
}
sha512sums="dc0ea3172e2bcdec972bf4d7a74e1e4a97de5e6d32adc6f4e36c3de57cf44529ea866ba9ee1c3014f2aaffee1e7b41c229358f6c997bcecf7f9262c95b0fa1b9  plasma-mobile-5845.8005327e.tar.gz
48ab9fb5279fe9dde44ef92f990eba98adc16180a3832c11e17c091ad719962d3b703fa746bb20048dd18f98e087cdbce930148e5f2b2de085eebe2fd64164a0  plasma-mobile.post-install
48ab9fb5279fe9dde44ef92f990eba98adc16180a3832c11e17c091ad719962d3b703fa746bb20048dd18f98e087cdbce930148e5f2b2de085eebe2fd64164a0  plasma-mobile.post-upgrade
48ab9fb5279fe9dde44ef92f990eba98adc16180a3832c11e17c091ad719962d3b703fa746bb20048dd18f98e087cdbce930148e5f2b2de085eebe2fd64164a0  plasma-mobile.post-deinstall"
